<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>File Source for routes.php</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
		</head>
		<body>
						<h1>Source for file routes.php</h1>
<p>Documentation is available at <a href="../phpDocumentor/_config---routes.php.html">routes.php</a></p>
<div class="src-code">
<div class="src-code"><ol><li><div class="src-line"><a name="a1"></a><span class="src-php">&lt;?php&nbsp;&nbsp;</span><span class="src-key">if&nbsp;</span><span class="src-sym">(&nbsp;</span><span class="src-sym">!&nbsp;</span><a href="http://www.php.net/defined">defined</a><span class="src-sym">(</span><span class="src-str">'BASEPATH'</span><span class="src-sym">))&nbsp;</span><span class="src-key">exit</span><span class="src-sym">(</span><span class="src-str">'No&nbsp;direct&nbsp;script&nbsp;access&nbsp;allowed'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a2"></a><span class="src-comm">/*</span></div></li>
<li><div class="src-line"><a name="a3"></a><span class="src-comm">|&nbsp;-------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a4"></a><span class="src-comm">|&nbsp;URI&nbsp;ROUTING</span></div></li>
<li><div class="src-line"><a name="a5"></a><span class="src-comm">|&nbsp;-------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a6"></a><span class="src-comm">|&nbsp;This&nbsp;file&nbsp;lets&nbsp;you&nbsp;re-map&nbsp;URI&nbsp;requests&nbsp;to&nbsp;specific&nbsp;controller&nbsp;functions.</span></div></li>
<li><div class="src-line"><a name="a7"></a><span class="src-comm">|</span></div></li>
<li><div class="src-line"><a name="a8"></a><span class="src-comm">|&nbsp;Typically&nbsp;there&nbsp;is&nbsp;a&nbsp;one-to-one&nbsp;relationship&nbsp;between&nbsp;a&nbsp;URL&nbsp;string</span></div></li>
<li><div class="src-line"><a name="a9"></a><span class="src-comm">|&nbsp;and&nbsp;its&nbsp;corresponding&nbsp;controller&nbsp;class/method.&nbsp;The&nbsp;segments&nbsp;in&nbsp;a</span></div></li>
<li><div class="src-line"><a name="a10"></a><span class="src-comm">|&nbsp;URL&nbsp;normally&nbsp;follow&nbsp;this&nbsp;pattern:</span></div></li>
<li><div class="src-line"><a name="a11"></a><span class="src-comm">|</span></div></li>
<li><div class="src-line"><a name="a12"></a><span class="src-comm">|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;example.com/class/method/id/</span></div></li>
<li><div class="src-line"><a name="a13"></a><span class="src-comm">|</span></div></li>
<li><div class="src-line"><a name="a14"></a><span class="src-comm">|&nbsp;In&nbsp;some&nbsp;instances,&nbsp;however,&nbsp;you&nbsp;may&nbsp;want&nbsp;to&nbsp;remap&nbsp;this&nbsp;relationship</span></div></li>
<li><div class="src-line"><a name="a15"></a><span class="src-comm">|&nbsp;so&nbsp;that&nbsp;a&nbsp;different&nbsp;class/function&nbsp;is&nbsp;called&nbsp;than&nbsp;the&nbsp;one</span></div></li>
<li><div class="src-line"><a name="a16"></a><span class="src-comm">|&nbsp;corresponding&nbsp;to&nbsp;the&nbsp;URL.</span></div></li>
<li><div class="src-line"><a name="a17"></a><span class="src-comm">|</span></div></li>
<li><div class="src-line"><a name="a18"></a><span class="src-comm">|&nbsp;Please&nbsp;see&nbsp;the&nbsp;user&nbsp;guide&nbsp;for&nbsp;complete&nbsp;details:</span></div></li>
<li><div class="src-line"><a name="a19"></a><span class="src-comm">|</span></div></li>
<li><div class="src-line"><a name="a20"></a><span class="src-comm">|&nbsp;&nbsp;&nbsp;&nbsp;http://codeigniter.com/user_guide/general/routing.html</span></div></li>
<li><div class="src-line"><a name="a21"></a><span class="src-comm">|</span></div></li>
<li><div class="src-line"><a name="a22"></a><span class="src-comm">|&nbsp;-------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a23"></a><span class="src-comm">|&nbsp;RESERVED&nbsp;ROUTES</span></div></li>
<li><div class="src-line"><a name="a24"></a><span class="src-comm">|&nbsp;-------------------------------------------------------------------------</span></div></li>
<li><div class="src-line"><a name="a25"></a><span class="src-comm">|</span></div></li>
<li><div class="src-line"><a name="a26"></a><span class="src-comm">|&nbsp;There&nbsp;are&nbsp;two&nbsp;reserved&nbsp;routes:</span></div></li>
<li><div class="src-line"><a name="a27"></a><span class="src-comm">|</span></div></li>
<li><div class="src-line"><a name="a28"></a><span class="src-comm">|&nbsp;&nbsp;&nbsp;&nbsp;$route['default_controller']&nbsp;=&nbsp;'welcome';</span></div></li>
<li><div class="src-line"><a name="a29"></a><span class="src-comm">|</span></div></li>
<li><div class="src-line"><a name="a30"></a><span class="src-comm">|&nbsp;This&nbsp;route&nbsp;indicates&nbsp;which&nbsp;controller&nbsp;class&nbsp;should&nbsp;be&nbsp;loaded&nbsp;if&nbsp;the</span></div></li>
<li><div class="src-line"><a name="a31"></a><span class="src-comm">|&nbsp;URI&nbsp;contains&nbsp;no&nbsp;data.&nbsp;In&nbsp;the&nbsp;above&nbsp;example,&nbsp;the&nbsp;&quot;welcome&quot;&nbsp;class</span></div></li>
<li><div class="src-line"><a name="a32"></a><span class="src-comm">|&nbsp;would&nbsp;be&nbsp;loaded.</span></div></li>
<li><div class="src-line"><a name="a33"></a><span class="src-comm">|</span></div></li>
<li><div class="src-line"><a name="a34"></a><span class="src-comm">|&nbsp;&nbsp;&nbsp;&nbsp;$route['scaffolding_trigger']&nbsp;=&nbsp;'scaffolding';</span></div></li>
<li><div class="src-line"><a name="a35"></a><span class="src-comm">|</span></div></li>
<li><div class="src-line"><a name="a36"></a><span class="src-comm">|&nbsp;This&nbsp;route&nbsp;lets&nbsp;you&nbsp;set&nbsp;a&nbsp;&quot;secret&quot;&nbsp;word&nbsp;that&nbsp;will&nbsp;trigger&nbsp;the</span></div></li>
<li><div class="src-line"><a name="a37"></a><span class="src-comm">|&nbsp;scaffolding&nbsp;feature&nbsp;for&nbsp;added&nbsp;security.&nbsp;Note:&nbsp;Scaffolding&nbsp;must&nbsp;be</span></div></li>
<li><div class="src-line"><a name="a38"></a><span class="src-comm">|&nbsp;enabled&nbsp;in&nbsp;the&nbsp;controller&nbsp;in&nbsp;which&nbsp;you&nbsp;intend&nbsp;to&nbsp;use&nbsp;it.&nbsp;&nbsp;&nbsp;The&nbsp;reserved&nbsp;</span></div></li>
<li><div class="src-line"><a name="a39"></a><span class="src-comm">|&nbsp;routes&nbsp;must&nbsp;come&nbsp;before&nbsp;any&nbsp;wildcard&nbsp;or&nbsp;regular&nbsp;expression&nbsp;routes.</span></div></li>
<li><div class="src-line"><a name="a40"></a><span class="src-comm">|</span></div></li>
<li><div class="src-line"><a name="a41"></a><span class="src-comm">*/</span></div></li>
<li><div class="src-line"><a name="a42"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a43"></a><span class="src-var">$route</span><span class="src-sym">[</span><span class="src-str">'default_controller'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-str">&quot;main_controller&quot;</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a44"></a><span class="src-var">$route</span><span class="src-sym">[</span><span class="src-str">'scaffolding_trigger'</span><span class="src-sym">]&nbsp;</span>=&nbsp;<span class="src-str">&quot;&quot;</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a45"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a46"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a47"></a><span class="src-comm">/*&nbsp;End&nbsp;of&nbsp;file&nbsp;routes.php&nbsp;*/</span></div></li>
<li><div class="src-line"><a name="a48"></a><span class="src-comm">/*&nbsp;Location:&nbsp;./system/application/config/routes.php&nbsp;*/</span></div></li>
</ol></div>
</div>
	<p class="notes" id="credit">
		Documentation generated on Wed, 01 Dec 2010 09:13:54 +0000 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a>
	</p>
	</body>
</html>